/*
 * @description: 
 * @Author: Islands
 * @Date: 2024-06-15 12:49:17
 * @LastEditTime: 2024-06-17 23:23:53
 */
import { PropType } from "vue";

const alignEnum = ['center', 'left', 'right'] as const;
const shapeEnum = ['circle', 'square'] as const;
const flexEnum = ['', 'column'] as const;
type EnumType = (typeof alignEnum)[number];
type ShapeEnum = (typeof shapeEnum)[number];
type FlexEnum = (typeof flexEnum)[number];
export const logoProps = {
    size: { type: Number, default: 23 },
    logoSize: { type: Number, default: 50 },
    align: {
        type: String as PropType<EnumType>,
        validator: (v: any) => alignEnum.includes(v),
        default: 'left',
    },
    shape: {
        type: String as PropType<ShapeEnum>,
        validator: (v: any) => shapeEnum.includes(v),
        default: 'square',
    },
    src: {
        type: String, default: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg'
    },
    flex:{
        type: String as PropType<FlexEnum>,
        validator: (v: any) => flexEnum.includes(v),
        default: '',
    },
    isTitle:{
        type:Boolean,
        default:true
    }
};